/**
 * 2018年12月17日下午3:56:17
 * @author 谢进财
 */
package com.baihang.project.ds.model.dbMap;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;

import com.baihang.project.ds.model.FangYuanModel;

/**
 * @author whati
 *
 */
@Repository
public class FangYuanRowMapper implements RowMapper<FangYuanModel> {

	/* (non-Javadoc)
	 * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
	 */
	@Override
	public FangYuanModel mapRow(ResultSet rs, int rowNum) throws SQLException {
		FangYuanModel model = new FangYuanModel();
		model.setD_ID(rs.getInt("D_ID"));
		model.setD_BanName(rs.getString("D_BanName"));
		model.setD_Unit(rs.getString("D_Unit"));
		model.setD_position(rs.getString("d_position"));
		model.setD_RoomNo(rs.getString("D_RoomNo"));
		model.setD_column(rs.getInt("D_column"));
		model.setD_CollectionCount(rs.getInt("D_CollectionCount"));
		model.setE_CollectionCount(rs.getInt("E_CollectionCount"));
		model.setD_FloorArea(rs.getDouble("D_FloorArea"));
		model.setD_state(rs.getString("D_state"));
		model.setD_RoomType(rs.getString("D_RoomType"));
		model.setD_Total(rs.getBigDecimal("D_Total").doubleValue());
		model.setD_SaleDate(rs.getString("D_SaleDate"));
		model.setD_SerialNumber(rs.getString("D_SerialNumber"));
		model.setD_Saller(rs.getString("D_Saller"));
		model.setD_SallerTel(rs.getString("D_SallerTel"));
		model.setD_HouseModel(rs.getString("D_HouseModel"));
		model.setD_Monitor(rs.getString("D_Monitor"));
		return model;
	}

}
